package com.dayuanit.dao;

import com.dayuanit.entity.Equipment;
import com.dayuanit.entity.WarehouseRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseRecordDao {

    /**
     * 根据设备编号或者出入库类型进行计数
     * @return
     */
    Integer countBy();

    /**
     * 根据设备编号或者出入库类型进行分页查询
     * @param row
     * @param rowSize
     * @return
     */
    List<Equipment> queryWarehousePage(@Param("row")Integer row, @Param("rowSize")Integer rowSize);

    /**
     * 插入数据
     * @param warehouseRecord
     */
    void insert(WarehouseRecord warehouseRecord);


    /**
     * 批量删除数据
     * @param idList
     */
    void batchRemove(@Param("idList") List<Long> idList);
}
